package com.action.childbase;

import android.content.Context;

import com.base.app_core.App;
import com.base.app_core.base.BaseView;
import com.base.app_core.model.Paginated;

import com.action.ioc.component.AppComponent;
import com.action.ioc.component.ChildViewComponent;
import com.action.ioc.module.ChildModule;
import razerdp.basepopup.BasePopupWindow;

/**
 * Created by jiansheng.li on 2018/2/4.
 */

public abstract class ChildBasePopupWindow extends BasePopupWindow implements BaseView {
	public ChildBasePopupWindow(Context context) {
		super(context);
	}

	public ChildBasePopupWindow(Context context, int w, int h) {
		super(context, w, h);
	}
	protected ChildViewComponent getChildViewComponent() {
		return (ChildViewComponent) ((AppComponent) App.getApp().getAppComponent()).plus(getSuperModule());
	}

	protected ChildModule getSuperModule() {
		return new ChildModule(this);
	}

	protected void setupComponent() {

	}
	@Override
	public void setState(int state) {

	}


	@Override
	public <T> void notifyData(T object, Class tClass, Paginated paginated) {

	}

	@Override
	public void notifyError(String errorCode, String content) {

	}

	@Override
	public void onLoginSuccess() {

	}
}
